package com.happyclub.pojo;

import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;

@Entity
@Table(name = "TB_TRAVEL_COMMONT_REPLY", schema = "SCOTT", catalog = "")
public class TbTravelCommontReply {
    private String id;
    private String commontId;
    private String replyUserId;
    private String userId;
    private String replyContext;
    private Time updateTime;
    private Time createTime;
    private String userName;
    private String replyUserName;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "COMMONT_ID")
    public String getCommontId() {
        return commontId;
    }

    public void setCommontId(String commontId) {
        this.commontId = commontId;
    }

    @Basic
    @Column(name = "REPLY_USER_ID")
    public String getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(String replyUserId) {
        this.replyUserId = replyUserId;
    }

    @Basic
    @Column(name = "USER_ID")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "REPLY_CONTEXT")
    public String getReplyContext() {
        return replyContext;
    }

    public void setReplyContext(String replyContext) {
        this.replyContext = replyContext;
    }

    @Basic
    @Column(name = "UPDATE_TIME")
    public Time getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Time updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public Time getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Time createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "USER_NAME")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Basic
    @Column(name = "REPLY_USER_NAME")
    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbTravelCommontReply that = (TbTravelCommontReply) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(commontId, that.commontId) &&
                Objects.equals(replyUserId, that.replyUserId) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(replyContext, that.replyContext) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(userName, that.userName) &&
                Objects.equals(replyUserName, that.replyUserName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, commontId, replyUserId, userId, replyContext, updateTime, createTime, userName, replyUserName);
    }
}
